@import './base.less';
@import './variable.less';

@shadow: 2px 2px 5px #6885c319;

.vir-container {
  flex-direction: column;
  background: #f7fbfd;
  display: flex;

  .vir-container-header {
    border-bottom: 1px solid #eee;
    justify-content: flex-end;
    box-sizing: border-box;
    display: flex;


    .layui-nav {
      background-color: #F7FBFD !important;
      color: #6885c3 !important;
      box-sizing: border-box;
      border-radius: 2px;
      position: relative;
      padding: 0 20px;
      font-size: 0;

      .layui-nav-item a {
        color: rgba(255, 255, 255, .7);
        color: #6885c3 !important;
        transition: all .3s;
        padding: 0 20px;
        display: block;
      }

      .layui-this::after,
      .layui-nav-bar,
      .layui-nav-tree .layui-nav-itemed::after {
        background-color: #6885c3 !important;
        transition: all .2s;
        position: absolute;
        height: 5px;
        width: 0;
        left: 0;
        top: 0;
      }
    }
  }

  .vir-container-body {
    box-sizing: border-box;
    padding: 10px 20px;
    overflow: hidden;
    flex: 1;

    &>div:first-child {
      min-height: 100%;
      width: 100%;
    }
  }

  &.scroll .vir-container-body {
    overflow-x: hidden;
    overflow-y: auto;

    &::-webkit-scrollbar {
      width: 7px;
    }

    &::-webkit-scrollbar-thumb {
      background-color: #dddddd;
      background-clip: padding-box;
      min-height: 28px;
      border-radius: 3px;

      &:hover {
        background-color: #bbb;
      }
    }

    &::-webkit-scrollbar-track-piece {
      background-color: #f8f8f8;
      border-radius: 3px;
    }
  }
}